﻿using System;
using System.Collections.Generic;
using System.Text;


using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public class mdc_spm_Determination_1 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("mdc_spm_Determination_1", "ID");


        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("mdc_spm_Determination_1", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("mdc_spm_Determination_1", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("mdc_spm_Determination_1", "UserName");
        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } } private string _Type; public static FieldInfo type = new FieldInfo("mdc_spm_Determination_1", "Type");
        [Column]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } } private DateTime _Time; public static FieldInfo time = new FieldInfo("mdc_spm_Determination_1", "Time");
        [Column]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } } private int _Status; public static FieldInfo status = new FieldInfo("mdc_spm_Determination_1", "Status");
        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } } private string _ApplicationNo; public static FieldInfo applicationNo = new FieldInfo("mdc_spm_Determination_1", "ApplicationNo");
        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } } private string _Department; public static FieldInfo department = new FieldInfo("mdc_spm_Determination_1", "Department");

        
        [Column]
        public string Sales_Organization { get { return _Sales_Organization; } set { _Sales_Organization = value; EntityState.FieldChange("Sales_Organization"); } } private string _Sales_Organization="CN88"; public static FieldInfo sales_Organization = new FieldInfo("mdc_spm_Determination_1", "Sales_Organization");
        [Column]
        public string Customer_Number_1 { get { return _Customer_Number_1; } set { _Customer_Number_1 = value; EntityState.FieldChange("Customer_Number_1"); } } private string _Customer_Number_1; public static FieldInfo customer_Number_1 = new FieldInfo("mdc_spm_Determination_1", "Customer_Number_1");
        [Column]
        public string Function_1 { get { return _Function_1; } set { _Function_1 = value; EntityState.FieldChange("Function_1"); } } private string _Function_1; public static FieldInfo function_1 = new FieldInfo("mdc_spm_Determination_3", "Function_1");
        //[Column]
        //public string Function_1 { get { return _Function_1; } set { _Function_1 = value; EntityState.FieldChange("Function_1"); } } private string _Function_1; public static FieldInfo Function_1 = new FieldInfo("mdc_spm_Determination_1", "Function_1");
        [Column]
        public string Postal_Code { get { return _Postal_Code; } set { _Postal_Code = value; EntityState.FieldChange("Postal_Code"); } } private string _Postal_Code; public static FieldInfo postal_Code = new FieldInfo("mdc_spm_Determination_1", "Postal_Code");
        [Column]
        public string Material_Number { get { return _Material_Number; } set { _Material_Number = value; EntityState.FieldChange("Material_Number  "); } } private string _Material_Number; public static FieldInfo material_Number = new FieldInfo("mdc_spm_Determination_1", "Material_Number  ");
        [Column]
        public string Material_Description { get { return _Material_Description; } set { _Material_Description = value; EntityState.FieldChange("Material_Description"); } } private string _Material_Description; public static FieldInfo material_Description = new FieldInfo("mdc_spm_Determination_1", "Material_Description");
        [Column]
        public string Brand { get { return _Brand; } set { _Brand = value; EntityState.FieldChange("Brand"); } } private string _Brand; public static FieldInfo brand = new FieldInfo("mdc_spm_Determination_1", "Brand");
        [Column]
        public string Brand_Description { get { return _Brand_Description; } set { _Brand_Description = value; EntityState.FieldChange("Brand_Description"); } } private string _Brand_Description; public static FieldInfo brand_Description = new FieldInfo("mdc_spm_Determination_1", "Brand_Description");
        [Column]
        public string Sub_brand { get { return _Sub_brand; } set { _Sub_brand = value; EntityState.FieldChange("Sub_brand"); } } private string _Sub_brand; public static FieldInfo sub_brand = new FieldInfo("mdc_spm_Determination_1", "Sub_brand");
        [Column]
        public string Sub_brand_Description { get { return _Sub_brand_Description; } set { _Sub_brand_Description = value; EntityState.FieldChange("Sub_brand_Description"); } } private string _Sub_brand_Description; public static FieldInfo sub_brand_Description = new FieldInfo("mdc_spm_Determination_1", "Sub_brand_Description");
        [Column]
        public string Technology { get { return _Technology; } set { _Technology = value; EntityState.FieldChange("Technology"); } } private string _Technology; public static FieldInfo technology = new FieldInfo("mdc_spm_Determination_1", "Technology");
        [Column]
        public string Transportation_zone { get { return _Transportation_zone; } set { _Transportation_zone = value; EntityState.FieldChange("Transportation_zone"); } } private string _Transportation_zone; public static FieldInfo transportation_zone = new FieldInfo("mdc_spm_Determination_1", "Transportation_zone");
        [Column]
        public string Volume_rebate_group { get { return _Volume_rebate_group; } set { _Volume_rebate_group = value; EntityState.FieldChange("Volume_rebate_group"); } } private string _Volume_rebate_group; public static FieldInfo volume_rebate_group = new FieldInfo("mdc_spm_Determination_1", "Volume_rebate_group");
        [Column]
        public string Material_Group { get { return _Material_Group; } set { _Material_Group = value; EntityState.FieldChange("Material_Group"); } } private string _Material_Group; public static FieldInfo material_Group = new FieldInfo("mdc_spm_Determination_1", "Material_Group");
        [Column]
        public string Plant { get { return _Plant; } set { _Plant = value; EntityState.FieldChange("Plant"); } } private string _Plant; public static FieldInfo plant = new FieldInfo("mdc_spm_Determination_1", "Plant");
        [Column]
        public string Old_Material { get { return _Old_Material; } set { _Old_Material = value; EntityState.FieldChange("Old_Material"); } } private string _Old_Material; public static FieldInfo old_Material = new FieldInfo("mdc_spm_Determination_1", "Old_Material");

    }
}
